const { User } = require("./model");

!(async function () {
  const updateRes = await User.update(
    {
      nickName: "张三",
    },
    {
      where: {
        userName: "zhangsan",
      },
    }
  );
  // updateRes 里面是修改的条数
  console.log("updateRes...", updateRes[0] > 0);
})();
